<table class="form_table" cellpadding="0" cellspacing="0" style="border-top: 0px;">

  <caption style="border-bottom: 0px;">
    <%= "#{Role.human_name}" %>
  </caption>

  <tr>
    <td class="label"><%= label_tag Role.human_attribute_name(:name) %></td>
    <td><%= @role.name %></td>
  </tr>
  <% if !@role.permissions.nil? && @role.permissions.count > 0 %>
  <tr>
    <td class="label"><%= label_tag Permission.human_name(:count => 2) %></td>
    <td>
      <ul class="list">
        <% @role.permissions.each do |p| %>
          <li><%= "#{p.action} - #{p.object_type}" %></li>
        <% end %>
      </ul>
    </td>
  </tr>
  <% end %>
</table>
